extends Path2D


onready var _icon = get_node("Icon") 
onready var _icon_2 = get_node("Icon2")
onready var _icon_3 = get_node("Icon3") 
onready var _label = get_node("Label")
onready var _h_scroll_bar = get_node("HScrollBar")


func _ready():
	_h_scroll_bar.max_value = curve.get_baked_length()
	print(curve.get_baked_length())


func _on_HScrollBar_value_changed(value):
	
	_icon.position = curve.interpolate(0, value)
	_icon_2.position = curve.interpolate_baked(value)
	_icon_3.position = curve.interpolatef(value)
	_label.text = str(value)



